x = 0

def a():
    x = 1
    def b():
        nonlocal x
        x += 1
        if x :
            return x
    def c():
        global x
        x += 5
        if x:
            return x

    print(b())
    print(c())

a()
print(x)
